package com.qolome.knowledge.design.principle.lsp.geometric;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Qolome
 * @version V1.0
 * @Description 演示测试
 * @date 2020年 02月26日 19:28:46
 */
@Slf4j
public class DemoTest {

    public static  void resize(QuadRangle quadRangle){
            while (quadRangle.getWidth() >= quadRangle.getHeight()){
                log.info("rectangle:{}",quadRangle);
            }
        log.info("final:{}",quadRangle);
    }

    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setHeight(10);
        rectangle.setWidth(20);
        resize(rectangle);
    }
}
